package com.han.demo5;

/**
 * @ClassName Client
 * @Description 描述该类的功能
 * @Author duoduo Han
 * @Date 2024/6/2 23:09
 */
public class Client {
    public static void main(String[] args) {
        //定义明星
        Star star = new Star();
        star.setName("刘德华");
        //定义粉丝
        Fans fans = new Fans();
        fans.setName("小明");
        //定义公司
        Company company = new Company();
        company.setName("黑马");
        //定义代理人
        Agent agent = new Agent();
        agent.setStar(star);
        agent.setFans(fans);
        agent.setCompany(company);
        agent.meeting();
        agent.business();
    }
}
